<?php

use think\facade\Route;

Route::group('admin', function () {
    //宣传册列表
    Route::get('AdminData/brochureList', 'AdminData/brochureList');
    //添加宣传册
    Route::post('AdminData/brochureAdd', 'AdminData/brochureAdd');
    //编辑宣传册
    Route::post('AdminData/brochureUpdate', 'AdminData/brochureUpdate');
    //宣传册详情
    Route::get('AdminData/brochureInfo', 'AdminData/brochureInfo');
    //文件夹列表
    Route::get('AdminData/folderList', 'AdminData/folderList');
    //文件夹列表(分页)
    Route::get('AdminData/folderPageList', 'AdminData/folderPageList');
    //添加文件夹
    Route::post('AdminData/folderAdd', 'AdminData/folderAdd');
    //编辑文件夹
    Route::post('AdminData/folderUpdate', 'AdminData/folderUpdate');
    //文件夹详情
    Route::get('AdminData/folderInfo', 'AdminData/folderInfo');
    //文件列表
    Route::get('AdminData/fileList', 'AdminData/fileList');
    //添加文件
    Route::post('AdminData/fileAdd', 'AdminData/fileAdd');
    //编辑文件
    Route::post('AdminData/fileUpdate', 'AdminData/fileUpdate');
    //文件详情
    Route::get('AdminData/fileInfo', 'AdminData/fileInfo');
    //配置详情
    Route::post('AdminData/configInfo', 'AdminData/configInfo');
    //修改配置
    Route::post('AdminData/configUpdate', 'AdminData/configUpdate');

    Route::get('AdminData/pptTopdf', 'AdminData/pptTopdf');

    Route::post('AdminData/base64ToPng', 'AdminData/base64ToPng');


});

Route::group('app', function () {
    //智能文件夹首页
    Route::get('IndexFile/index', 'IndexFile/index');
    //room_key
    Route::get('IndexFile/imRoomList', 'IndexFile/imRoomList');
    //判断是否还有没有完成的演示
    Route::get('IndexFile/isImIng', 'IndexFile/isImIng');
    //企业文件文件夹列表
    Route::get('IndexFile/companyFolderList', 'IndexFile/companyFolderList');
    //我的文件
    Route::get('IndexFile/myFileList', 'IndexFile/myFileList');
    //收藏列表
    Route::get('IndexFile/collectList', 'IndexFile/collectList');
    //添加文件夹
    Route::post('IndexFile/folderAdd', 'IndexFile/folderAdd');
    //编辑文件夹
    Route::post('IndexFile/folderUpdate', 'IndexFile/folderUpdate');
    //文件夹详情
    Route::get('IndexFile/folderInfo', 'IndexFile/folderInfo');
    //添加文件
    Route::post('IndexFile/fileAdd', 'IndexFile/fileAdd');
    //编辑文件
    Route::post('IndexFile/fileUpdate', 'IndexFile/fileUpdate');
    //文件详情
    Route::get('IndexFile/fileInfo', 'IndexFile/fileInfo');

    Route::get('IndexFile/folderList', 'IndexFile/folderList');
    //文件夹下面的文件和文件(folder_id)
    Route::get('IndexFile/fileAndFolderList', 'IndexFile/fileAndFolderList');

    Route::post('IndexFile/collectFile', 'IndexFile/collectFile');

    Route::get('IndexFile/imQr', 'IndexFile/imQr');

    Route::post('IndexFile/radarPage', 'IndexFile/radarPage');
    //room_key url
    Route::post('IndexFile/addVideo', 'IndexFile/addVideo');
    //room_key video
    Route::post('IndexFile/addVideoSub', 'IndexFile/addVideoSub');
    //宣传册首页列表
    Route::get('IndexBrochure/brochureList', 'IndexBrochure/brochureList');
    //宣传册统计数据(start_time,end_time,company_id,b_id:宣传册id,不传就是所有宣传册统计)
    Route::get('IndexBrochure/indexStatistics', 'IndexBrochure/indexStatistics');
    //宣传册统计宣传册排行(start_time,end_time,company_id)
    Route::get('IndexBrochure/brochureStatisticsList', 'IndexBrochure/brochureStatisticsList');
    //宣传册统计员工排行(start_time,end_time,company_id)
    Route::get('IndexBrochure/staffTopList', 'IndexBrochure/staffTopList');

    Route::get('IndexBrochure/brochureInfo', 'IndexBrochure/brochureInfo');

    Route::get('IndexBrochure/getCompanyList', 'IndexBrochure/getCompanyList');

    Route::post('IndexBrochure/shareBrochure', 'IndexBrochure/shareBrochure');



});

















